package java19_3_22_reflect.tawtype;

import java19_1_21.Outter;

/**
 * @author 是阿秋啊
 * @date 2022/04/18 16:00
 **/
public class MyOutter<T> {
    // 成员内部类
    private class Inner{
        public void test(T t2) {
            System.out.println(t2);
        }
    }
    // 静态内部类
    // 这里的T是独立的
    private static class Inner1<T> {
        public void fun(T t1) {
            System.out.println(t1);
        }
    }

    public static void main(String[] args) {
        MyOutter<String> outter = new MyOutter<>();
        MyOutter<String>.Inner inner = outter.new Inner();
        inner.test("123");
        //inner.test(123);
        MyOutter.Inner1<Integer> inner1 = new Inner1<>();
        inner1.fun(123);
    }
}
